package com.hanhai.zrb.mobile.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hanhai.common.annotation.LoginNeedless;
import com.hanhai.common.web.controller.BaseController;
import com.hanhai.zrb.api.biz.service.PhotoService;
import com.hanhai.zrb.mobile.result.BaseApiResult;
import com.hanhai.zrb.model.photo.Photo;

@Controller
@RequestMapping("banner")
@RestController
@LoginNeedless
public class BannerController extends BaseController {

	@Resource
	private PhotoService photoService;

	@RequestMapping("topBannerList")
	public BaseApiResult topBannerList() {
		List<Photo> list = photoService.topBannerList();
		BaseApiResult result = new BaseApiResult();
		result.setData(list);
		return result;
	}
}
